@extends('admin.layouts.dashboard')
@section('page_heading','Tables')

@section('section')
<div class="row">
	<div class="col-sm-12">
		@section ('cotable_panel_title','Coloured Table')
		@section ('cotable_panel_body')
		<table class="table table-bordered">
			<thead>
				<tr>
					<th>轮播图id</th>
					<th>轮播图地址</th>
					<th>操作</th>
				</tr>
			</thead>
			<tbody>
				@foreach($banners as $banner)
				<tr class="success">
					<td>{{ $banner->id }}</td>
					<td><img src="{{ $banner->img_url }}" style="width:100px;height:100px;"></td>
					<td>
						@include('admin.delete',array('data'=>$banner,'name' => 'banner'))
					</td>
				</tr>
				@endforeach
			</tbody>
		</table>	
		@endsection
		@include('admin.widgets.panel', array('header'=>true, 'as'=>'cotable'))
	</div>
</div>
<div>
	{{ $banners->render() }}
</div>
@stop